<%=render(:partial=>"shared/top")%>
<tr><td valign=top class='leftSpace'>
    <div  id="module_middle">
    <div id="module_left2">
        <div id="islogin"><%if(session[:user].nil?)%>
        <%="login NOT needed - "+link_to("login/register for more services",:controller=>"/user",:action=>"login")%>
        <%else%>
        <%="hello,"+session[:user].firstname+"  "+link_to("my saved swarms",:controller=>"/bookmark",:action=>"index")+"  "%>
        <%= link_to "logout",:controller=>"/user",:action=>"logout"%>
        <%end%></div>
        <br />
        
        <div id='main'><%= yield :layout %></div>
	<%=render(:partial=>"shared/messege")%>
	
	<br><br><br><div id='show' align="center"><a href="#" onclick='location.reload(true)'><span class="STYLE2"> click here to refresh page ...... </span></a></div>
	
	 </div>
     </div>
</td><td valign="top" class=rightspace>
        <%=render(:partial=>"shared/right")%>
</td></tr>  
<tr><td colspan=2>
<%=render(:partial=>"shared/bottom")%>
<%=render(:partial=>"shared/showmessage")%>
</td></tr>
</table>
